﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Kakaroto.Models;
using System.Web.ModelBinding;

namespace Kakaroto.Pedidos
{
    public partial class ListaMesas : System.Web.UI.Page
    {      
        protected void Page_Load(object sender, EventArgs e)
        {
         
        }

        public IQueryable<Mesa> GetMesas()
        {
            var _db = new Kakaroto.Models.KakarotoEntities();
            IQueryable<Mesa> query = _db.Mesa;
            return query;
        }

        protected void CancelaBtn_Click(object sender, EventArgs e)
        {
            PedidoActions actPedido = new PedidoActions();
            actPedido.CancelarPedido();
            Response.Redirect("./Default.aspx");
        }
    }
}